package com.app.utils.impl.labour;

import android.app.Activity;

import com.app.utils.impl.IConsole;
import com.app.utils.impl.Strategy;
import com.zndroid.utils.XUtils;
import com.zndroid.utils.impl.NotchUtil;

/**
 * Created by lzy on 2022/2/21.
 */
public class NotchUtilStrategy extends Strategy {
    Activity activity;
    public NotchUtilStrategy(IConsole iConsole, Activity activity) {
        super(iConsole);
        this.activity = activity;
    }

    @Override
    public void doing() {
        NotchUtil util = XUtils.create().notchUtil();

        iConsole.console("hasNotchScreen", util.hasNotchScreen(activity) + "");
        iConsole.console("getNotchHeight", util.getNotchHeight(activity) + "");
    }
}
